﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MSExcel = Microsoft.Office.Interop.Excel;

namespace UltraToys.Excel
{
    public static class RangeExtension
    {
        public static MSExcel.Range Range(this MSExcel.Worksheet Sheet, string Cell1, string Cell2)
        {
            return Sheet.get_Range(Cell1, Cell2);
        }

        public static MSExcel.Range Range(this MSExcel.Worksheet Sheet, string Cell1)
        {
            return Sheet.get_Range(Cell1, System.Type.Missing);
        }
    }
}
